<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>教员注册</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<!-- <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript">
		function onblur(){
			var tpassword = $("#tPassword").val();
			var password = $("#password").val();
			if(tpassword!=password){
				$("#msg").html("密码和重复密码要一致").css("color","red");
				return false;
			}
			$("#msg").html("");
		}
	</script> -->
  </head>
  
  <body>
    <form action="teacherController/addTea.do" method="post">
    	教员账号:<input type = "text" name = "tAcc"><br>
    	密码:<input type = "Password" name = "tPassword" id = "tPassword"><br>
    	重复密码:<input type = "Password" onblur="onblur" id = "password">
    	<span id = "msg"></span><br>
    	姓名:<input type = "text" name = "tName"><br>
    	性别:
    		<input type = "radio" name = "tSex" value = "男">男
    		<input type = "radio" name = "tSex" value = "女">女<br>
    	年龄:<input type = "text" name = "tAge"><br>
    	手机号:<input type = "text" name = "tPhone"><br>
    	QQ号:<input type = "text" name = "tQq"><br>
    	邮箱:<input type = "text" name = "tMail"><br>
    	学历:
    		<select name = "education.educationId">
    			<option>请选择</option>
    			<c:forEach items="${allEducation }" var = "e">
    				<option value = "${e.educationId }">${e.educationName }</option>
    			</c:forEach>
    		</select><br>
    	专业:
    		<select name = "major.majorId">
    			<option>请选择</option>
    			<c:forEach items="${allMajor }" var = "m">
    				<option value = "${m.majorId }">${m.majorName }</option>
    			</c:forEach>
    		</select><br>
    	目前身份:<input type = "text" name = "tCurr"><br>
    	可指教课程:<input type = "text" name = "classe"><br>
    	执教方式:
    		<select name = "model.modelId">
    			<option>请选择</option>
    			<c:forEach items="${allModel }" var = "l">
    				<option value = "${l.modelId }">${l.modelName }</option>
    			</c:forEach>
    		</select><br>
    	执教地区:
    		<select name = "adder.addId">
    			<option>请选择</option>
    			<c:forEach items="${allAdder }" var = "a">
    				<option value = "${a.addId }">${a.addName }</option>
    			</c:forEach>
    		</select><br>
    	自我介绍:<input type = "text" name = "tIntroduce"><br>
    	执教课程收费:<input type = "text" name = "clasCost"><br>
    	<input type = "submit" value = "提交">	
    </form>

  </body>
</html>
